//package com.chat.api.baidu;
//
//import com.chat.api.utils.DecideLangueUtil;
//import net.sf.json.JSONArray;
//import net.sf.json.JSONObject;
//
//import java.util.HashMap;
//import java.util.Map;
//
//public class Main {
//
//    // 在平台申请的APP_ID 详见 http://api.fanyi.baidu.com/api/trans/product/desktop?req=developer
//    private static final String APP_ID = "20201026000599011";
//    private static final String SECURITY_KEY = "Yy_tZoj2csTTMAWJlwss";
//
//    public static void main(String[] args) {
//        TransApi api = new TransApi(APP_ID, SECURITY_KEY);
//        String query = "Height 600 m";
//        String transResult = api.getTransResult(query, "en", "zh");
//        JSONObject jsonObject = JSONObject.fromObject(transResult);
//        JSONArray result = jsonObject.getJSONArray("trans_result");
//        JSONObject object = result.getJSONObject(0);
//        object.getString("dst");
//        System.out.println(object.getString("dst"));
//    }
//
//}
